<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.nccsjz.back.link.service.LinkService,com.nccsjz.pojo.Link,java.util.List,java.util.ArrayList" %>
<%@ page import="com.nccsjz.front.service.IndexCardService,com.nccsjz.pojo.Vote,java.util.List,java.util.ArrayList" %>
<%-- 引入 Struts2 标签 --%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%-- 引入JSTL 标签--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%-- appPath 上下文路径 --%>
<%
	String appPath = request.getContextPath();
	request.setAttribute("appPath",appPath);
%>
<%-- cardPath 请求前台页面的根路径 --%>
<%
	String cardPath = request.getContextPath();
	request.setAttribute("cardPath",cardPath);
%>
<%-- backPath 请求后台页面的根路径 --%>
<%
	String backPath = request.getContextPath() + "/back";
	request.setAttribute("backPath",backPath);
	request.setCharacterEncoding("utf-8");
	List<Link> links = new LinkService().finalAllLinks();	
	request.setAttribute("links",links);
	
	Vote vote = new IndexCardService().getSelectedVote();
	request.setAttribute("vo",vote);
%>